package com.example.expandablelistview.multimedia;

import android.app.Activity;
import android.os.Bundle;
import android.os.Environment;
import android.widget.MediaController;
import android.widget.VideoView;

import com.example.expandablelistview.R;

public class VideoViewer extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.mul_videoviewer);
		
		VideoView video = (VideoView) findViewById(R.id.videoview);
		String sd = Environment.getExternalStorageDirectory().getAbsolutePath();
		video.setVideoPath(sd + "/testvideo.3gp");
		
		final MediaController mc = new MediaController(this);
		video.setMediaController(mc);
		video.postDelayed(new Runnable() {
			public void run() {
				mc.show();
			}
		}, 100);
	}
}
